package com.vdimitr.katapotter;

/**
 * Calculates the price of a bucket of books including discount.
 * 
 * @author vasileios.dimitriadis
 *
 */
public class BucketPriceCalculator {

	private DiscountPriceCalculator discountCalculator = new DiscountPriceCalculator();
	
	public double getPrice(int numberOfBooks) {
		double discount = discountCalculator.getDiscount(numberOfBooks);
		double price = 8 * numberOfBooks * discount;
		return price;
	}
}
